package factory;

import interfaces.Friut;

public class Factory {
	
	public static Friut getInstance(String className){
		Friut f=null;
		try {
			f=(Friut)Class.forName(className).newInstance();
		} catch (InstantiationException | IllegalAccessException | ClassNotFoundException e) {
			e.printStackTrace();
		}
		return f;
	}

}
